package top.canyue.word_range.pojo.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import top.canyue.word_range.pojo.po.Condition;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ConditionDto {
    /*
   ID
    */
    private String id;
    /*
    条件名称
     */
    private String name;

    public Condition toPo() {
        Condition condition = new Condition();
        condition.setId(id);
        condition.setName(name);
        return condition;
    }
}
